home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d3
/
rettig.arc
/
TRSOURCE.EXE
/
_TR_GETC.ASM
< prev
next >
Wrap
Assembly Source File
|
1990-10-22
|
991b
|
37 lines
; _TR_GETC.ASM
;
; by Ralph Davis, Leonard Zerman
; modified by Rick Spence
;
; Placed in the public domain by Tom Rettig Associates, 10/22/1990.
;
PUBLIC __TR_GETCH
;*******************************
_TR_GETC_TEXT SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:_TR_GETC_TEXT
;-------------------------------
__TR_GETCH PROC FAR
;
; SYNTAX: __tr_getch()
;
; RETURNS: Single character entered at keyboard
; (Does not wait for <RETURN> key)
;
;----------------------
MOV AH,7 ; Use function call 7
; to avoid Ctrl-Break checking
; (get key)
INT 21H
CBW ; Fill AX with AL sign-extended
; (i.e. convert char to int)
RET
__TR_GETCH ENDP
;-----------------------------
_TR_GETC_TEXT ENDS
;*****************************
END